package design.onekey.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import design.onekey.base.GenericMapper;
import design.onekey.model.dto.IndexMenuTreeDto;
import design.onekey.model.SysMenu;
import design.onekey.model.dto.MenuTreeDto;
import design.onekey.model.dto.SysMenuDto;

import java.util.List;

/**
* @Description: SysMenuMapper类
* @author
* @date 2020-06-05 04:03:09
* @version V1.0
*/
public interface SysMenuMapper extends BaseMapper<SysMenu> , GenericMapper<SysMenu> {

   /**
    * @Title: getMenuTree
    * @Description: 获取授权菜单树
    * @param sysMenuDto
    * @return
    * @author blcloak
    * @date 2020-06-11 08:32:21
    */
   List<MenuTreeDto> getMenuTree(SysMenuDto sysMenuDto);

   /**
    * @Title: getIndexMenu
    * @Description: 获取首页菜单树
    * @param sysMenuDto
    * @return
    * @author blcloak
    * @date 2020-06-11 05:35:49
    */
   List<IndexMenuTreeDto> getIndexMenu(SysMenuDto sysMenuDto);
}
